package web;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.OrderService;

public class OrderController {

    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("spring-di.xml");

//        OrderService orderService = (OrderService) ioc.getBean("orderService5");
//
//        orderService.show();

        OrderDao orderDao = (OrderDao) ioc.getBean("orderDao2");
        System.out.println(orderDao);
    }
}
